import 'package:flutter/material.dart';

class HomeDetails extends StatefulWidget {
  const HomeDetails({super.key});

  @override
  State<HomeDetails> createState() => _HomeDetailsState();
}

class _HomeDetailsState extends State<HomeDetails> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("商品详情")),
      body: SafeArea(
        child: Column(
          children: [
            Hero(
              tag: "image",
              child: Image.network(
                width: double.infinity,
                height: 300,
                fit: BoxFit.fill,
                "https://img0.baidu.com/it/u=1178328027,1798019496&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
              ),
            ),
            Text(
              "商品详情",
              style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
            ),
          ],
        ),
      ),
    );
  }
}
